//#include "ui_tinytimerapp.h"
#include <QThread>
#include <QTime>

class CDThread : public QThread{
	
	Q_OBJECT

	private:
		QTime initTime;
		QTime now;
		// running=0 ----running
		// running=1 ----pause
		int running;

		const QTime& countdown();
	public:
		CDThread();
		~CDThread();
		void startcountdown(QTime& c_initTime);
		void pausecountdown();
		void restartcountdown();
		void run();
	signals:
		void changeTimer(const QTime &time);
		void timeUp();

};
